package se.dolkow.skola.datasakerhet.server.storage;

public class Nurse extends AbstractDivisionUser {

	public Nurse(String name, Division div) {
		super(name, div);
	}

	public boolean isPersonallyAuthorized(Action a, Record r) {
		if (r.getNurse().equals(this)) {
			return a == Action.READ || a == Action.WRITE;
		}
		return false;
	}

	public boolean canCreateFor(Patient p) {
		return false;
	}

}
